home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr35
/
dispwhen.zip
/
DISPWHEN.DOC
next >
Wrap
Text File
|
1993-04-03
|
2KB
|
47 lines
DISPWHEN V 1 . 0
----------------
This .PPE checks day, time & security level and displays a file if applicable.
Usage:
!DispWhen.PPE LowSec;HighSec;StartTime;EndTime;Days;DisplayFile
Where:
LowSec is the lowest level to display the file to
HighSec is the highest level to display the file to
StartTime is the Earliest time to display the file
EndTime is the latest time to display the file
Days is the day flags to display the file SMTWTFS (Y or N for each)
DisplayFile is the file to be displayed
Example:
!DispWhen.PPE 10;80;06:00;08:00;NYYYYYN;C:\PCB\GEN\NoWay
The file C:\PCB\GEN\NoWay will be displayed to any caller with a security
level between 10 and 80 (inclusive) between the hours 6am to 8am on a
weekday (M-F).
DispWhen will properly Handle time ranges where the EndTime falls before the
StartTime. ie.
!DispWhen.PPE 10;80;23:00;01:00;;C:\PCB\GEN\NoWay
Also, Days maybe left blank (as above example) and YYYYYYY will be assumed.
(Y will be assumed for any days not specified ie NN becomes NNYYYYY)
The above examples assume you are placing this PPE file in the PCBOARD.DAT
directory for each node. Since that is not the best way to do things, make
sure you specify the full path (unless a default is added to PCBSetup in
the future). ie.
!C:\PCB\PPE\DispWhen.PPE 10;80;23:00;01:00;;C:\PCB\GEN\NoWay
You can use this PPE in any display file and it was written to allow you
to tailor it's use with the command line arguments so modification and
recompiling the source code should not be needed, but it is included here
for study by those who want to write their own or those who desire to add
some other feature.
Gary Meeker: SYSOP: SHARP Technical Support Line BBS (404) 962-1788